module Base
{
	model AZLK2141_POLICEBase
	{
		mesh = vehicles/Vehicle_AZLK2141_POLICE_Body,
		shader = vehicle,
		invertX = false,
		scale = 1,
	}
	model AZLK2141frontwheelleft
	{
		mesh = vehicles/Vehicle_AZLK2141_Wheel,
		texture = vehicles/Vehicle_AZLK2141_wheel,
		shader = vehiclewheel,
	}
	model AZLK2141frontwheelright
	{
		mesh = vehicles/Vehicle_AZLK2141_Wheel,
		texture = vehicles/Vehicle_AZLK2141_wheel,
	}
	model AZLK2141backwheelleft
	{
		mesh = vehicles/Vehicle_AZLK2141_Wheel,
		texture = vehicles/Vehicle_AZLK2141_wheel,
	}
	model AZLK2141backwheelright
	{
		mesh = vehicles/Vehicle_AZLK2141_Wheel,
		texture = vehicles/Vehicle_AZLK2141_wheel,
	}
	vehicle AZLK2141_POLICE
	{
		mechanicType = 1,
		offRoadEfficiency = 0.8,
		engineRepairLevel = 2,
		playerDamageProtection = 1.5,

		model
		{
			file = AZLK2141_POLICEBase,
			scale = 1.4500,
			offset = 0.0000 0.1484 -0.0194,
		}

		skin
		{
			texture = Vehicles/Vehicle_AZLK2141_POLICE,
		}

		textureMask = Vehicles/Vehicle_AZLK2141_Mask,
		textureLights = Vehicles/Vehicle_AZLK2141_lights,
		textureDamage1Overlay = Vehicles/Vehicle_AZLK2141_DAMAGE1,
		textureDamage2Overlay = Vehicles/Vehicle_AZLK2141_DAMAGE2,
		textureDamage1Shell = Vehicles/Vehicle_AZLK2141_DAMAGE1,
		textureDamage2Shell = Vehicles/Vehicle_AZLK2141_DAMAGE2,
		textureRust = Vehicles/Vehicle_AZLK2141_Rust,

		lightbar
		{
			soundSiren = VehicleSiren,
		}

		sound
		{
			engine = VehicleEngineCarStationWagon,
			engineStart = start_engine_2141,
			engineTurnOff = VAZ_engine_off,
			horn = VAZ_horn,
			ignitionFail = fail_start_engine_2141,
		}

		extents = 0.9548 0.6323 2.4516,
		mass = 1100,
		physicsChassisShape = 0.9548 0.6323 2.4516,
		centerOfMassOffset = 0.0000 0.2645 -0.0516,
		shadowExtents = 0.8346 2.2821,
		shadowOffset = 0.0000 -0.0189,
		engineForce = 4000,
		engineQuality = 70,
		engineLoudness = 73,
		maxSpeed = 90f,
		gearRatioCount = 4,
		gearRatioR = 7.09,
		gearRatio1 = 7.44,
		gearRatio2 = 2.29,
		gearRatio3 = 1,
		brakingForce = 63,
		rollInfluence = 0.9f,
		steeringIncrement = 0.03,
		steeringClamp = 0.28,
		suspensionStiffness = 40,
		suspensionCompression = 1.83,
		suspensionDamping = 0.88,
		maxSuspensionTravelCm = 10,
		suspensionRestLength = 0.2,
		wheelFriction = 1.4f,
		frontEndHealth = 90,
		rearEndHealth = 90,
		seats = 4,

		wheel FrontLeft
		{
			front = true,
			offset = 0.3548 -0.2065 0.6903,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel FrontRight
		{
			front = true,
			offset = -0.3548 -0.2065 0.6903,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel RearLeft
		{
			front = false,
			offset = 0.3548 -0.2323 -0.7935,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel RearRight
		{
			front = false,
			offset = -0.3548 -0.2323 -0.7935,
			radius = 0.15f,
			width = 0.2f,
		}

		template = PassengerSeat4,

		passenger FrontLeft
		{
			position inside
			{
				offset = 0.1806 0.0581 0.0194,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 0.6968 -0.4129 0.0516,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontLeft,
			}
		}

		passenger FrontRight
		{
			position inside
			{
				offset = -0.1806 0.0581 0.0194,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -0.6968 -0.5613 0.0516,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontRight,
			}
		}

		passenger RearLeft
		{
			position inside
			{
				offset = 0.1806 0.0581 -0.4903,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 0.6968 -0.4065 -0.4065,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatRearLeft,
			}
		}

		passenger RearRight
		{
			position inside
			{
				offset = -0.1806 0.0581 -0.4903,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -0.6903 -0.4065 -0.3742,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatRearRight,
			}
		}

		area Engine
		{
			xywh = 0.0000 1.3742 0.6839 0.4258,
		}

		area TruckBed
		{
			xywh = 0.0000 -1.5290 0.7355 0.5032,
		}

		area SeatFrontLeft
		{
			xywh = 0.6839 0.0839 0.4258 0.5290,
		}

		area SeatFrontRight
		{
			xywh = -0.6839 0.0839 0.4258 0.5290,
		}

		area SeatRearRight
		{
			xywh = -0.6839 -0.4387 0.4258 0.4774,
		}

		area SeatRearLeft
		{
			xywh = 0.6839 -0.4387 0.4258 0.4774,
		}

		area GasTank
		{
			xywh = -0.6839 -1.0194 0.4258 0.4258,
		}

		area TireFrontLeft
		{
			xywh = 0.6000 0.6645 0.4258 0.4258,
		}

		area TireFrontRight
		{
			xywh = -0.6000 0.6645 0.4258 0.4258,
		}

		area TireRearLeft
		{
			xywh = 0.6000 -0.8129 0.4258 0.4258,
		}

		area TireRearRight
		{
			xywh = -0.6000 -0.8129 0.4258 0.4258,
		}

		template = Trunk/part/TruckBed,

		part TruckBed
		{
			itemType = Base.BigTrunk,

			container
			{
				capacity = 85,
			}
		}

		template = TrunkDoor,
		template = Seat/part/SeatFrontLeft,
		template = Seat/part/SeatFrontRight,
		template = Seat/part/SeatRearLeft,
		template = Seat/part/SeatRearRight,

		part Seat*
		{
			table install
			{
				skills = Mechanics:2,
				recipes = Basic Mechanics,
			}

			table uninstall
			{
				skills = Mechanics:2,
				recipes = Basic Mechanics,
			}
		}

		part GloveBox
		{
			area = SeatFrontRight,
			itemType = Base.GloveBox,
			mechanicRequireKey = true,

			container
			{
				capacity = 7,
				test = Vehicles.ContainerAccess.GloveBox,
			}

			lua
			{
				create = Vehicles.Create.Default,
			}
		}

		template = GasTank,

		part GasTank
		{
			install
			{
				skills = Mechanics:3,
				recipes = Basic Mechanics,
			}

			uninstall
			{
				skills = Mechanics:3,
				recipes = Basic Mechanics,
			}
		}

		template = Battery,
		template = Engine,
		template = Muffler,

		part Muffler
		{
			table install
			{
				recipes = Basic Mechanics,
			}

			table uninstall
			{
				recipes = Basic Mechanics,
			}
		}

		template = EngineDoor,

		part EngineDoor
		{
			table install
			{
				recipes = Basic Mechanics,
			}

			table uninstall
			{
				recipes = Basic Mechanics,
			}
		}

		part Heater
		{
			category = engine,

			lua
			{
				update = Vehicles.Update.Heater,
			}
		}

		part PassengerCompartment
		{
			category = nodisplay,

			lua
			{
				update = Vehicles.Update.PassengerCompartment,
			}
		}

		template = Windshield/part/Windshield,
		template = Windshield/part/WindshieldRear,

		part Windshield*
		{
			table install
			{
				recipes = Basic Mechanics,
			}

			table uninstall
			{
				recipes = Basic Mechanics,
			}
		}

		template = Window/part/WindowFrontLeft,
		template = Window/part/WindowFrontRight,
		template = Window/part/WindowRearRight,
		template = Window/part/WindowRearLeft,

		part Window*
		{
			table install
			{
				recipes = Basic Mechanics,
			}

			table uninstall
			{
				recipes = Basic Mechanics,
			}
		}

		template = Door/part/DoorFrontLeft,
		template = Door/part/DoorFrontRight,
		template = Door/part/DoorRearLeft,
		template = Door/part/DoorRearRight,

		part Door*
		{
			table install
			{
				recipes = Basic Mechanics,
			}

			table uninstall
			{
				recipes = Basic Mechanics,
			}
		}

		template = Tire,

		part TireFrontLeft
		{
			model InflatedTirePlusWheel
			{
				file = AZLK2141frontwheelleft,
			}
		}

		part TireFrontRight
		{
			model InflatedTirePlusWheel
			{
				file = AZLK2141frontwheelright,
			}
		}

		part TireRearLeft
		{
			model InflatedTirePlusWheel
			{
				file = AZLK2141backwheelleft,
			}
		}

		part TireRearRight
		{
			model InflatedTirePlusWheel
			{
				file = AZLK2141backwheelright,
			}
		}

		template = Brake,

		part Brake*
		{
			table install
			{
				skills = Mechanics:2,
				recipes = Basic Mechanics,
			}

			table uninstall
			{
				skills = Mechanics:2,
				recipes = Basic Mechanics,
			}
		}

		template = Suspension,

		part Suspension*
		{
			table install
			{
				skills = Mechanics:2,
				recipes = Basic Mechanics,
			}

			table uninstall
			{
				skills = Mechanics:2,
				recipes = Basic Mechanics,
			}
		}

		template = Radio,
		template = Headlight,

		attachment trailerfront
		{
			offset = 0.0000 -0.0848 1.4121,
			rotate = 0.0000 0.0000 0.0000,
		}

		attachment trailer
		{
			offset = 0.0000 -0.0848 -1.4970,
			rotate = 0.0000 0.0000 0.0000,
		}
	}
}
